//
//  RMParser.h
//  rmplanner
//
//  Created by Andrew Pigram on 10/07/12.
//  Copyright (c) 2012 PiAMP Productions. All rights reserved.
//

#import <Foundation/Foundation.h>

@class RMMeal, RMCell, RMDetailViewController, RMAllergyViewController;

@interface RMParser : NSOperation <NSXMLParserDelegate>

@property (strong, nonatomic) NSData* xmlData;
@property (strong, nonatomic) UIViewController* xmlSender;
@property (nonatomic) BOOL parsing;
@property (strong, nonatomic) NSMutableString* metaData;
@property (strong, nonatomic) RMMeal* currentMeal;
@property (strong, nonatomic) NSMutableArray* dayArray;
@property (strong, nonatomic) NSMutableArray* meals;
@property (strong, nonatomic) NSString* allergy;
@property (strong, nonatomic) NSMutableArray* selected;
@property (strong, nonatomic) NSMutableArray* ids;

- (void)setData:(NSData *)data sender:(UIViewController *)sender;
- (void)specialParse:(NSData *)data controller:(RMDetailViewController *)sender;
- (void)specialParse:(NSData *)data settings:(RMAllergyViewController *)sender;

@end
